package com.objetdirect.gwt.umldrawer.server.dao;

import javax.annotation.PostConstruct;
import javax.persistence.EntityManagerFactory;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import com.objetdirect.gwt.umldrawer.shared.dto.DiagramDto;

@Repository (value = "diagramDao")
public class DiagramDao extends JpaDAO<Long, DiagramDto> {

	@Autowired
	EntityManagerFactory entityManagerFactory ;
	
	@PostConstruct
	public void init() {
		this.setEntityManagerFactory(entityManagerFactory);
	}
}
